/*
 * Copyright (C) 2011, EADS France
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */
package xowl.gmi.controller;

/**
 *
 * @author Laurent WOUTERS
 */
public class ZeroMore extends RepeatElement {
    private xowl.gmi.model.cvssl.ZeroMore definition;
    
    @Override protected xowl.gmi.model.cvssl.Element getChildElement() { return definition.getElement(); }
    @Override protected boolean canRemoveAChild() { return (children.size() >= 1); }
    
    public ZeroMore(Controller controller, Element parent, xowl.gmi.model.cvssl.ZeroMore def) {
        super(controller, parent, def.getAlignment(), def.getIsPacked(), def.getIsOrdered());
        this.definition = def;
    }
}
